projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779df11
)
test-concurrency: Use Python 3 syntax for octal
author
Simon McVittie
<smcv@debian.org>
Wed, 17 Jan 2018 14:25:26 +0000
(14:25 +0000)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Thu, 22 Feb 2018 19:24:47 +0000
(19:24 +0000)
This also works in Python 2.7, and is a little clearer.
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #1457
Approved by: cgwalters
tests/test-concurrency.py
patch
|
blob
|
history
diff --git
a/tests/test-concurrency.py
b/tests/test-concurrency.py
index bdcc1d9196464b02af7915517408367137405b28..6fade24f81fd6f756421cb28c2aaee6cd13b976c 100755
(executable)
--- a/
tests/test-concurrency.py
+++ b/
tests/test-concurrency.py
@@
-33,7
+33,7
@@
def fatal(msg):
# different files with different checksums.
def mktree(dname, serial=0):
print('Creating tree', dname, file=sys.stderr)
- os.mkdir(dname, 0755)
+ os.mkdir(dname, 0
o
755)
for v in xrange(20):
with open('{}/{}'.format(dname, v), 'w') as f:
f.write('{} {} {}\n'.format(dname, serial, v))